Updated documentation for promises