updated doc and added some examples