Update code to Moodle standards
Merge pull request #7 from unikent/master

[DeployBot] STABLE Pull