output files to temporary directory
Merge pull request #30 from martinghunt/temp_file_For_filtering

output files to temporary directory