Tool for Markov and Semi-Markov modeling