Added comment description of getFreqTable function