Applied Nonparametric Density And Regression Estimation With Discrete Data: Plug-In Bandwidth Selection And Non-Geometric Kernel Functions