Add errorhandlers with templates and tests
Update README and TODO