added cdfs, plots and KS.test