adc using avr code

ADC now uses first iteration of direct access AVR code. Currentlly it is
still waiting for conversion to complete. Other changes include the
beginning of a reorganization for easier reading.