minor fixes, viterbi still does not work