HTML output upgraded and empty tables bug fixed.