add r's hmm traning