This commit updated API for generating token providing ability to pass more arguments and updated readme file as well.