Update result() to be a working version (taking over from table object). Changed a couple of functions to search from docel rather than the document.
Update result() to be a working version (taking over from table object). Changed a couple of functions to search from docel rather than the document.

cjungmann/schemafw,cjungmann/schemafw,cjungmann/schemafw,cjungmann/schemafw,cjungmann/schemafw