Added first version of a simple API for menu structure