Fixed bugs in import_stm. Working end-to-end on example data poliblogrun.RData.