fixed bug appending topic to list of topics and minor docstring cleanup