This is working code.  It needs more work though.  It is extremely slow and does not currently make a spectrum.
First commit in a while.  All of this code should work.  the pulseHeight files are arrays of pulse heights for histogramming.
trying to get all my stuff synched up.