fixed logic to use latest header.tpl
added comments explaining what the smarty vars are for
corrected using new header.tpl. This method requires to include
dForm_element.tpl, instead of dForm_block.tpl - the latter being removed
since not needed in this demo app