Some major cleanups for hist pairwise, including much better formatting.