Improved readability of huffman decoding.
Reduced memory footprint and removed old unnecessary dependencies.