Modified header and footer to use a global $siteDir variable and made the index.php & single.php files singular.