Cleanup
Created strategy for temp file and thread execution.
Merge pull request #11 from psh/temp-file-management-strategy

Temp file management strategy