Compute perplexity for each new document sets
Fix minor bugs