updated the indexing method in loop to use enumerate. also updated the specification to include uv layer names for lookup.