add init and destroy header function
Merge pull request #1 from maro2511/Ariel1

add init and destroy header function