add code and figures for kz confidence intervals