remove header and footer from all function (Closes #7)