updated doc and interface code to solve compile warnings and errors