Added docstrings to method definitions