Issue #14 Update module code to conform new moodle API