updated documentation to use .then for promises