started moving semi-markov stuff into separate file (beware non-compilable state)