Solving bug at hmm trainer, documentation of matrix