AQCU-772: Added duplicate removal. Removed debug functions and old, unused functions. Slight code cleanup.
AQCU-772: Added duplicate removal. Removed debug functions and old, unused functions. Slight code cleanup.

dpattermann-usgs/repgen,mhines-usgs/repgen,thongsav-usgs/repgen,USGS-R/repgen,mhines-usgs/repgen,USGS-R/repgen,lindsaycarr/repgen,dpattermann-usgs/repgen,thongsav-usgs/repgen,zmoore-usgs/repgen,mhines-usgs/repgen,lindsaycarr/repgen,thongsav-usgs/repgen,lindsaycarr/repgen,zmoore-usgs/repgen,dpattermann-usgs/repgen,USGS-R/repgen,zmoore-usgs/repgen