Added docstrings to methods