added tmat functionality
Try integrating tpr fitting with spt.

It isn't going well. Going to seperate better
Seperate fitting
quadratic fitting
Non-log histogramming
subdivision code