updated api.md