update readme and add some comments