fixed csv exporting..'
added saving files to directory
added a few more comments