Update frequency.py

I added a blurb about this script being used for a Coursera data science class. I also made the notes easier to read.