updated deletion and logging of temporary files to resolve issue #73