Header templating, add parsing and tests, but there are still issues