Add function to write output to csv file. Include csv file in this commit
Add function to read output from csv file.