Improved docstrings for some functions.