initial commit of cdf gradients code
tweaks to new cpdf gradients