wrote util adc/gpio, other minor corrections