Fixed .csv writing error. Wasn't creating new lines.