Parses and manipulates the CSV file