Add sampling frequency, smoothing with moving average and various tests.