Add explanation of show_frequencies helper function