fixing syntax errors and adding debug lines
kludgy fix for model wavelength array being wrong

in creating the model the wrong wavelength array was saved,
so I've added a line to the script to change the model in the current
implementation, but it will need to be updated and checked for real
raising to a power is **, not ^