Revert "Revert "Merge pull request #76 from addthis/keytopper-fix-export""

This reverts commit 942dbee934576219edbf952dbeaa286692ab80a0.
Implementation of variable length page header.