Move header/footer to macros instead of include construction