remove trailing newlines
cast date string as str() before CSV output
Merge pull request #1 from gronke/master

cast date as str() when writing to CSV file