Moved around and created header file
Generic number of dimensions for our moving average, and improved variable names
Added a bunch of things at the same time... All is well :D