header template added to table components

+ documentation improvements
+ code cleanup