small change to smoothing, updated examples and fixed small bug