More code to delete temporary files.
Added setup and teardown methods to make sure temp files are deleted.