Some code commending & doc. Rename resource type name patterns from iri to resource