adding in the ability to plot the spectrum directly to the optimization
also need to add the plot script
using ours