Import Document elements
Made sure documents validate.
Reimplemented Document