demo(lda) problem

demo(lda) fails -- need to replace topic with variable
minor code simplification for slda modification