Fixed PHPDocs
Altered the code so that the plugin was compatible with the changes in Moodle's calendar type system