Fix TODO
Improve language strings
Change function name and improve documentation

Changed name of function to start_distribution_in_course()
and improved the locallib.php's documentation.
Refactor

Refactored the groupdistribution_tables() function.