Added moving average, updated tests and moving average.