Updated the README examples to use promises