Updated docstrings for API documentation.