fix a bug in Entropy.accumulate() to use getFreq() method and update a few comments