added docstrings to class and methods