seperate header and footer also update footer

Seperate header and footer in to files.
Update footer.