added int min function. Improved pretty test fail output for assertDiffEqual. Cleaned up diffCompute func