Rewrote the quadrature rules module