setupHermiteIntegral seems to be working. Needs testing