added Error documentation