fixed issues with median gm calc, used expected results from official python implementation (modified to use updated coeffs). uncertainty not yet implemented