generateSchedule.php fully functional

I believe that the algorithm is now completely functional.  The code
still needs to be cleaned up a fair bit, however I did rename variables
to make more sense.