report tool: add foundation
diagram tool reorg, toggle diagram and table
cleanup