Added code to calculate the topic mixture of documents