final edits of appendToCSV