adding api examples to readme