Script only available for teachers.
Minor - cleaning whitespaces.
Allowing adding course categories if option is on in configuration.php see BT#6195
Adding option delete group/categories not in file see BT#6985