Improve docstrings and comments
Don't influence user's homedir
Some refactoring
Actually use mode
Hardcode mkdir mode