add page and single.php. tidy up index.php