use tmpfile
Merge pull request #197 from stuartnelson3/temp-file-refactor

use tmpfile from stdlib