Improved the coding style

Improved the coding style according to the Moodle guidelines.