changed ADC functions and extended base station and node code

removed busy waiting in ADC functions.  Added flag to indicate when ADC
finished sampling. Added 'transmit' case to node code.