Html tables now appear in the right order.

Also various fixes clarifying the resultant html and removing prefixes
in tables.