added rudimentary writing to CSV file. Added csv file for testing.