made huffTrees methods return an error instead of being commented out