Improved the way  spectra are integrated for finding the 511 line. Now, if there is a group that is less than the value of 'max_specs', it is lumped into the previous group so the minimum integration time is defined by 'max_specs'... perhaps the name of tha variable should change...
Removed debugging output
Found issue with passing incorrect peak511 values to makeedges because of a missing offset