Minor improvement in table and examples

Hi!

I've made a minor modification in table() to allow for header row customization and provided an example script on template usage.

Gabriele