Fixed record_locations.pl
Fixed bugs in ctchecks, assrt_lib and record_locations.pl