Write results to csv in data directory