Corrected bug so I believe centroid correct, added in peaks from the spectrum