Move sleep operation to main loop
Doxygen commenting
Change sleep behaviour to not sleep on pushbutton down
Basic ADC