Reporting module, summary tables, html fixes