update readme for how to use promise