revised program
updated doc
typo fixed