added support for subtype of resource types;
renamed files of compute to instance for clarity of subtype