Index: trunk/src/scriptbuilder/gui/IncidentPaletteFrame.java
===================================================================
--- trunk/src/scriptbuilder/gui/IncidentPaletteFrame.java	(revision 73)
+++ trunk/src/scriptbuilder/gui/IncidentPaletteFrame.java	(revision 76)
@@ -31,4 +31,7 @@
     private SimulationScript dummyScript;
 
+    /**
+     * The list of incidents to be displayed in the palette.
+     */
     public ArrayList<ScriptIncident> incidentList;
 
@@ -36,9 +39,12 @@
 
     /**
-     * Creates new form IncidentPaletteFrame
+     * Create new IncidentPaletteFrame from the form.
+     *
+     * @param scr The currently running script, to which new incidents will be
+     * added.
      */
-    public IncidentPaletteFrame(SimulationScript s)
-    {
-        script = s;
+    public IncidentPaletteFrame(SimulationScript scr)
+    {
+        script = scr;
 
         panelAdd = new JPanel();
@@ -54,5 +60,5 @@
         incidentList = loadIncidentsFromFiles("Incidents");
 
-        recalculateList();
+        refresh();
 
     }
@@ -128,5 +134,5 @@
     }
 
-    private void recalculateList()
+    private void refresh()
     {
 
@@ -136,9 +142,15 @@
     }
 
+    /**
+     * Attempt to add an incident to the script. If successful, refresh the
+     * palette.
+     *
+     * @param incPanel the Add Panel which holds the incident to be added.
+     */
     public void addIncidentToScript(IncidentPaletteAddPanel incPanel)
     {
         if (script.addIncident(incPanel.incident))
         {
-            recalculateList();
+            refresh();
         }
     }
