formatted template.php
refactored header.php and footer.php into template.php