Added then() return.
Added docs.