added support for menus, removed console.log alias

and a little reorganizing