adc functionality added

+ a bugfix where the current wasn't set
needs cleanup