memory corruption fix
Correct huffman from table spec
post-huffman code review