Made layout model immutable.
Refactored table creation.
New feature: control repeating header row in table