Added getNumAmplitudes() method.
Added FFT analysis to example.