Adding document type, amendments to external urls

Update to beta4