added quadgk integration routine