Made minor changes nescessary for ADC to function

Has been thoroughly tested and is functional.