Added ADC test (which controls the DAC signal frequency). The code is really messy.