Changed script to find fwhm and peak