made export huffman code to file