Update Main.php

Should fix all the problems. :)
Merge pull request #3 from LukeDarling/patch-1

Update Main.php