Fix 'headers already sent' error
Merge pull request #5 from Randomfish132/master

Fix 'headers already sent' error