Fixed newline bug in writeToCSV. Implemented test for calculateReturns, but not currently working.