Fixes #12 now deletes temporary files.