Clean header and footer file