add the bulk of the logic for  opcode buckets
committing bulk of opcode locgic