Adaptive Nonparametric Statistical Theory and Implementation