Turned off numerous debug statements for speed and changed the placement of a recursive_lock in tdms.
Changed the scanning range for performance reasons.