Added docstrings for each member function.