add support for row template
Fix missing licences and fix some PSR