table.py: added comments to previous change and fixed other bugs

1) Comment to clarify what we are offsetting and why.

2) Switched `rows' and `cols' in code to create header rows with
   color but no text, so our lists of empty strings have the
   right length.