added files examples and correct an error in encoding huffman.