Add getDocumentHandle method
to rebase - missing headers
WIP autocomplete