Update scripts, create api and demonstrate how to use it.