Index: trunk/webapps/mergelogs.bash
===================================================================
--- trunk/webapps/mergelogs.bash	(revision 551)
+++ trunk/webapps/mergelogs.bash	(revision 631)
@@ -3,8 +3,18 @@
 # TODO: Add error handling - missing files, not executed from 'trunk', ... 
 
-# 1. Extract CAD DETAIL lines from incident_script.xml
+# 1. Runs a python program named "extract_caddetails" 
+# to extract CAD DETAIL lines from incident_script.xml
+# and creates an output file "caddetails.csv" 
 PYTHONPATH=webapps/unifiedlogger.zip  python -m extract_caddetails
+
+# 2. Define a variable for the directory containing the data files
 dir="webapps/dynamicdata"
-# 2. Merge the unified log with cad details and evaluation ratings
+
+# 3. Merge three files: unified log, cad details, and evaluation ratings
+# then sort them by timestamp (reverse chronological).  
+# Final result placed in "unifiedlog_final.csv"
 cat $dir/unifiedlog.csv $dir/caddetails.csv $dir/ratings.csv | sort > $dir/unifiedlog_final.csv
 
+# 4. Next, launch the webserver and browse to localhost:8080/unifiedlogdisplay.html 
+#    to show a nicely formatted version of the results.
+
