Fixes primary proc flags setter
Example apps use the API to create the bundles
examples refactoring
Merge branch 'refactor_and_api_apps' into next