Use new error methods, update docs

Broken. Var is still "result". Please check the code for this.