Initial update to API v2
update the example accordingly to the new API. Some commands still have to be defined
Update installer