Now I have completed all of the header & footers.  This should solve the issue.  Now I want to commit this, do a pull request, merge it into master and delete the branch.  Here goes nothing.
Merge pull request #4 from gregor42/dirtfoot

Fix for the Head/Foot issue