Fixed an issue with most recent change to smoothing code; updated example Rmd