Refactored time manipulation functions
Added more tests
Updated readme