widen range of kde plot for npoints; add kde function for any vector of xs, fix off-by-one error in kde npoints