revised readme and the way api request is made