updated doc and the scripts