added val[k][0] notation to both pml and muinvpml, copied code to both, works consistently;