Put a check in for rebin less than 1.
Changed a method to get the type of a source.