Continued on projection. Playing with a resampling method for imposing a lower limit on kde. Fixed bug with plot_kde