Updated sample project, reorganised API, start/stop support