Adding ADC file to help break out the necessary functions
Minor cleanup