minor formatting fixes
delete_record_by_ref always returns ok, change tc