Add in <main> element, other formatting fixes

Add <main> element and move role of main off <section> and onto it.

Add new lines at end of PHP files to make consistent.

Remove extra white space & indent tags appropriately

Removed an extra "<" from line 313 in functions.php.