Refactoring the MomentTensorModelFit code to make it more readable.

Adding another target to generate big statistics for the model fit methods.

Added a function to integrate a variable along a dimension.