adding api and docs