Added comments, and production of HTML report.