added namespace to absolute value calls; also fixed fabs to abs on for integer pdgid sum