Added documentation for errors and isValid.
Docs consistency.