removed php tags from all of the endings and also changed the entry point to be main.php