Consolidated compare area and perimeter classes, cleaned up main method and output