made small improvements to ADC sampling