ADC initialization added; ADC bug fixed