added full references and comments

references to chunkids throughout whole file. Added comments to groups
and items at their closing tags.