updated doc and scripts