Improved ADC Routines

Improved Some ADC routines