Further refactored the moment tensor model fit code. Now the fit functions are separated out and can be used directly to generate big stats.
The basic stats code is now ready to start running in big batches.

Fixed a bug with the tensor components which may actually improve the results in general.

Fixed a nasty bug where I overwrote the wrong chunk of memory!