Errors are handled more gracefully with file writing + file ext support
Merge pull request #41 from wpreul/master

Errors are handled more gracefully with file writing + file ext support