Updated example in README
Renamed ifNotOk() to onError()