Fixed up the HMM likelihood calculation a bit. Parameters might still be fuzzy though, double check those in the future.