added files and basic functionality for the rolling average tools.
adjusted files and consolidated the work into a single .c and .h file, plus the main.c file that exists as a testbed