adding basic docstrings to some functions