Added additional methods to support detection from an iterator of SAMRec...

...ords.
Also, you have changed the signature of the public function ```add```.  Do you want to keep the old one?