updated api and readme