Updated docstrings for detail and clarity