added noisy hmm code