added some confidence interval code. The conversion has not been tested