Write energies and parameters to file
Add calculating efficiency vs. wavelength after optimization
Add command-line parameters