Added function for computing confidence interval. Closes #15