Changed to output the files to csv's

the comments got lost somewhere along the way though.