add a map option, which may be used to manipulate header information when packing or extracting
Merge pull request #1 from dominictarr/master

add a map option, which may be used to manipulate header information