Full code review

Full code review
I am referring to Mr. LDA paper, I guess the variables are almost the same. Here is the paper link: 
http://www.cs.colorado.edu/~jbg/docs/mrlda.pdf