1.add smooth method for time series. 2. fix bugs