Minor improvements to docstrings and log messages.