Removes die statement and corrects phpdoc for generateHeader

- Removed what looks like a leftover debug statement.
- Updated the docblock for generateHeader to include the correct parameters.