Fixed year and month not being factored into anything.
Numeric comments.
Fixed index errors that were causing wrong day names.