Adapted for the spectrophotometry project a bit more and fixed some bugs

Checked the residuals and fixed some typos in the data array

TODO fill a text file with the expectation values
TODO smooth the function and make prettier graphs
Still some fiddling to do but almost there.

Still not sure which of the tables on the NIST database is most
appropriate but have included the test data from the mercury sample at
III.