added function to pull header and footer, and renamed directory