added an iterator for values and docstrings