update doc, add .extend, .data methods, minor fixs