made huffTree make sense
fixed a test
fixed another test
made tests slightly more readable
all maketreefromtext tests updated to new api
updated a couple more tests
aaaaand another test
all test updated to the new function semantics