changed the headerfooter to seperate files.