major changes

added adc routines, no sleep while charging