add (Document) : added methods for Document class