Changed csv to txt output