Changed `folds` and `foldsM` to not directly depend on `foldl`
Updated documentation for `folds` and `foldsM`