Fixed bug unavailablepromise
Updated docs