updated doc and samples