update code examples
Merge pull request #31 from senny/rework_the_readme

update code examples