Update API to expose success and failure blocks
Update Readme and tests for new API
Update documentation for new API