Added support for sub-menus to have their own icons

Sub-menus were not coming in with the solidus tag ending on menuitems, so tweaked the example. And added support for menus that declare an icon.