Change iterative code to match batch code
Apply fawce's fix to the information ratio
Merge branch 'information_ratio' into ema_transform
Cleanup code, add correct test cases