added file open
merged files, csv writing should work