Wrote a class for returning CSV files. Still need to test and play about with formatting.