fix doc and add an example section