Added updated api and documentation