Made the Document constructor public