Added code to calculate first and second moments.
Added runner to make running things on Gordon easier.