Changed HMM emission function to make more sense