docstrings added.