Added more comprehensive check for the time interval. Intervals that include midnight are now possible. Closes #16
Merge pull request #17 from aicioara/master

Fix #16 thanks @aicioara