added simple menu tree generator, with support for sub-menus