adding docstrings for functions