Account for huffman encoding & header offset

I'm 60% sure this is correct.
Merge pull request #1 from justinabrahms/patch-1

Account for huffman encoding & header offset