Second Commit

Addition of writing to CSV file