Cleaned up the calendar code.
Placed the generating part of the code in a seperate class.
Renamed test file to index