adding docstrings for documentation