Added check for headers already being sent in header function
Merge pull request #22 from 0x6C77/master

Added check for headers already being sent in header function