updating API and docs