misc refactoring
Merge pull request #11 from yingjieMiao/lda

misc refactoring