finally fixed LDA. Refactored the scripts that preprocess/run/parse/export it.