docstrings for Text class