Corrected examples and updated doc