Reformat some code
More adjustments to the temp array pretty printing
More adjustments
Fix some of the bad math