Place tmp files in working dir instead of /tmp.
Cleanup test directory by default but add option to keep it.
Remove unnecessary file suffixes.
Add gitignore.