Docstrings updated to topic_tools.py