adding docstrings to functions