added docstrings for class