Code update
added spectrum2 with magnitude and peak detection