adding docstrings/doctests