added the ability to add a header to the catalog with the help of the velocity template
reformat code