Added Averaging, changed program structure