adds umask
upp'd version by request
Merge pull request #74 from basz/improvement/umask

Improvement/umask