Reformatted the code.
Implemented getTopicList() function.