add basic NoteFreq class to remove this feature from PatternElement
use NoteFreq instead of PatternElement for Frequency table
adding NoteFreq into makefile
remove unused comment
break display_XXX function into subfunction