simplifying api and adapting examples

- fixing tabject example
- cleaning up multiple places