Minor bug fixes

Formatting
Merge pull request #15 from vinu/date-range-bug-fixes

Minor bug fixes