update readme.
fix a typo throwing exceptions.
more elobrated example.