Add API examples, update README and add a LICENSE