Some bug fixes.
Updated example/readme.