replace succ/fail block with convention of (data, error) block plus polishes

done for [https://issues.jboss.org/browse/AGIOS-264](https://issues.jboss.org/browse/AGIOS-264)