add a flag to keep intermediate files
Merge pull request #57 from andrewjpage/temp_files

add a flag to keep intermediate files