Writing to CSV file is now working at least for locations, can also preview the CSV file but only when running on phone not in simulator