update readme and fix example