SPICE fixes & Embedded Spectrum Viewer

Fixed a bunch of SPICE bugs that cropped up during the first SPICE test, and embedded a gammaSpectrum spectrum viewer.