Match UML to Pseudo and Formatting

Made some code easier to read. Matched up the UML diagrams with the
pseudocode. Made the avg ratio methods in purchasedPaintingReport and
SoldPaintingReport use the proper getRatio.