added functions to handle option changes for type and inst_count. Use type in gadget search
added functions to handle option changes for type and inst_count. Use type in gadget search

sashs/Ropper,sashs/Ropper