Update documentation thenApply -> then