Added docs for addMenuItem and fixed the addButton docs.