Export errors for easy checks from application code
Fix parameter description and add valid booleans to doc
Merge pull request #231 from VividCortex/export-errors

Export errors