Added documentation for the error object.
Updated the errors test for the new error object.