fixed return value of function in ask_classes
version
updated doc