Update README.md

Added doc for onError and onFinal.