removed mass matrix from dphi metric
added absolute value to jump terms, such that their signs will alternate