-do decision and calibration in parallel
-refactor / comments
-add bound to [0,1] for ri
-perf graphs