added adc init to main