updating docs to reflect new api for instatiation