Write docstrings on cursor, lines, and prompt