Add on_success and on_failure callback feature
Update readme