debugged LDA training, changed globals->globalobjs