Add "/dist" directory to gitignore
Add ability to set error handler
Add examples of error handling to README