Fixed documentation. Added tests for cummean.