added api examples to README