Updated documentation with getErrors() and clearErrors().