Removes die statement and corrects phpdoc for generateHeader