Updated docs to new api format