Index: /trunk/ippScripts/scripts/ipp_apply_burntool_fix.pl
===================================================================
--- /trunk/ippScripts/scripts/ipp_apply_burntool_fix.pl	(revision 37312)
+++ /trunk/ippScripts/scripts/ipp_apply_burntool_fix.pl	(revision 37313)
@@ -39,8 +39,9 @@
 die "usage: $0 --exp_name (exp_name) --class_id (class_id)\n" unless $class_id and $exp_name;
 
-
+# Set up the commands we'll use:
 $regtool  .= " -dbname $dbname -exp_name $exp_name -class_id $class_id";
 $burntool .= " --dbname $dbname --camera $camera";
 
+# Check database entry for this to get the exp_id and image uri
 my $regData;
 {
@@ -64,8 +65,10 @@
 die "failed to find uri in regtool output" unless $uri;
 
+# Construct burntool table name
 my $table;
 ($table = $uri) =~ s/\.fits/\.burn\.tbl/;
 print "$table\n";
 
+# Look for the old table, and if it exists, move it out of the way and delete it so we can work from scratch.
 my $table_exists;
 {
@@ -95,4 +98,5 @@
 }
 
+# Calculate the previous uri for the table by decrementing the nightly image sequence
 my $left = substr $exp_name, 0, 6;
 my $num = substr $exp_name, 6, 4;
@@ -107,5 +111,6 @@
 $prev_uri =~ s/$exp_name/$prev_name/g;
 die "failed" unless $prev_uri;
-# print "$prev_name $prev_uri\n";
+
+# Run the burntool command to generate the table.
 {
     my $command = "$burntool --exp_id $exp_id --class_id $class_id --this_uri $uri --previous_uri $prev_uri";
@@ -120,4 +125,7 @@
     }
 }
+
+# This isn't needed, but doesn't hurt anything.
+# Copy the table we just made to a local directory
 if (defined $save) {
     my $nebfile = `neb-locate -p $table`; chomp $nebfile;
