Fixed the test and example to work with new api.
Fixed README.