Updated docstrings to topic_tools.py