rewrote unit test of mktemp
fixed test
appended test for private methods
added benchmark
changed to fast code
refactored
some changed

- changed from comment to doc comment
- changed function and exports