WIP:Working on implemening HMM final state. not working
FinalState seems fixed. TODO verify