added main functionality for the ADC.  Some issues still exist with the interrupts