Added support for 2 rows in thead (the first row can have colspans and rowspans!). Also fixed a css bug by explicitly selecting cells with data-priority set to 1-6.