Added confidence interval calculation, half integral, multiple full integrals.