Fixed problem with date parsing
Closes #4. Closes #5.