Added docstrings to iterative functions.