added: automatic log file
clean up
added: exceptions to handle empty date fields (fixed #9)
added: a logger and cleaning up the prints