update readme and added comments