optimised chmm further, removed bugs, setup appropriate scoring for matches.