added huffman decoding to snippet