changed code to delete temp files after use
Merge pull request #20 from montaggroup/reduce_temp_files

changed code to delete temp files after use