added unit test for timed feature
altered comments and namings
refactored datetimes into Period class