Updated Main.php done a little bit of work