updated docstrings to topic_tools.py