fixed warnings + indexing hmm and pcfg