Docs updated for the new api