fix another bug in example code.
added simple usage guide to the README