KDE code refactored, added KDE plot correlation. Plot correlation is still buggy