added comments and a testing file for dealing with dates
merged