changed write2file to write to .csv instead of .xls