Added support for sub-menus and enlarged the section about i-PI