fix updatemats and general code style
add GibbsLDAModel.learn