Some cosmetic fixes, including a fix for error when there's no data for previous month.
Merge pull request #3 from shygon/newmodel

Some cosmetic fixes, including a fix for error when there's no data for ...