Updated calculations. Fixed tiling issue. Added min/max calculations.
Improoved text outputs.