add plot_sqrt_spectra, small bug fixes