add smoothing function
update smoothing function
Merge pull request #53 from sealhuang/add-smoothing

add smoothing function