various changes, chmm now uses a position matrix to keep track of alignment