Added more docstrings.