Better use of the NSDocument superclass.
Used fileReferenceURL only for root item.