Feature/errors field support

Addresses #2 .