Adding API examples to the README