Added output section heading for clarity. Minor code cleanup
formatting corrections