updated moving average example and example index page