Moodle 2.4 Updates and Code Reformatting

Updates for the Moodle 2.4 way of displaying courses in the my Moodle
page. I reformatted the code using PHPstorm. Resolved a minor issue
with location of the data_auto_bash_cfg.sh file.  Updated the PHPdocs
as well.