ENH: add header and footers and a bit more knitr usage