updated comments for frequency.py