Added a factory method for all documents classes to instantiate a new document. This will be used by the document manager.