added populate and dumpToFile code to track menu item popularity