added more functionality to huffmanNode class
fixed bugs with the huffmanNode class