Training Model and corresponding changes to HMM