implemented a test for the huffman coding and got it to work
minor style updates