Refactored calendar generator
Fixed condition
Removed useless methods
Refactored coding standards
Added exception
Renamed variable