Have a doctest for cumulative row sum
refactored have event method to release
Added a lot of error handling (could do this forever)