adding csv outs
adding code to write out csvs