Added some API example, both in code and in README.adoc