added more code examples and some tests (WIP)