Can now read and write to csv files