Move PHP templates in "tpl" files
Code style / comments enhancements