Fix and enhance docstrings.