replace deprecated functions
remove current year category creation
check that subcategories and courses exist
tidy up comments