patch to crm to reorder beta for HMM models and compute v-c matrix from
hessian; also further updates to hmmDemo and related functions