added headings/footers, changed history template (example -> spis.tex)