ability to specify custom function for header entity
Merge pull request #15 from erictip/custom_header_function

Custom header function