Format the CSV export