MDL-41395 Improved phpdocs for coursecatlib.php