Trim out duplicately pasted entries from index. Break index into sections (via comments serving as section breaks).