Changed template.tex to template.sty

Deleted debug-code