general fixes and example

- fixed some core classes
- added example app
- added example client