Adds base inheritance
Fixes references for document content