CSV output formatting fixed