renew readme and fix a bug of dump to file