Changed how the ids are generated in the menus widget. Added some documentation and updated licenses.