issue #4 - better error handling
issue #8 - create dir
Merge pull request #28 from georgebyelas/master

issue #4 - better error handling