All docstrings added.
Added fold and fold_keys with docstrings.