various refactorings
remove LDA as main class