Refactored server setup check into check and var updates. Moved bytes string parsing out of server setup check and fixed naming convention. Fixed indentation to match library core instead of Moodle style.