First part. Program is now able to acquire 1000 samples, plot them and
the FFT (with peak detection)  of it.