updated doc according to the new debug feature
updated doc with new callback function