added ivan's edits up to HMM vs MEMM