Add or improve docstrings and targeted inline comments for functions, classes, or modules. Use when the user says "add docstrings", "document this function", "add comments", or "explain this code in comments". Follows the language's docstring convention and documents behavior, not the obvious.