code cleanup

head
header
footer

all moved to includes