huffmandecoder readability improved