added WriteToCSV function

Not sure how the LinkedList is formated at the moment but I'm just
writing it the same way you did with the text file