Added optional moving average count and travis integration