added cdf plotting.