update doc.go with API changes