Add Main file to write a CSV file