add api examples to readme