completely redone hmm training