updated the readme and api