Added documentation, typed parameters in TopicModel.