Math

some quick changes to confidence interval calculation. will investigate better ways to do this.