added updated doc and examples