added some comments to be used later for plotting confidence intervals