gain selector added
offest polarity selector added