Changed ApplyFunc to Apply, fixed Cumsum example