diff --git a/tomcat/webapps/Trawl/infoGenerator.js b/tomcat/webapps/Trawl/infoGenerator.js
index 5cba6ef31a481b4668c6db85599b16b2f6dac274..450b8e8f12df5f5ba872192e006a678d8797640c 100644
--- a/tomcat/webapps/Trawl/infoGenerator.js
+++ b/tomcat/webapps/Trawl/infoGenerator.js
@@ -1,16 +1,23 @@
+/**
+ * Generates html text to fill info windows on a Google Maps API
+ * @param names String array of scientific fish names
+ * @param dates Array of JSON objects containing 3 arrays: Year[], Month[], Day[]
+ * @param count Integer array of counts of each fish species
+ * @returns String array where each entry is html code to describe a marker on a map
+ */
 function infoGenerator(names, dates, count){
-	
-	
-	
+
 	var infoArray =[];
 	
 	for (int i=0; i < names.length; i++){
+		// Initialize variables to each data point's information
 		 var year = dates[i][0];
 		 var month = dates[i][1];
 		 var day = dates[i][2];
 		 var name = names[i];
 		 var count = count[i];
 
+		 // Generate string of html
 		 var contentString = ‘<div id=“content”>‘+
 		     ‘<div id=“siteNotice”>‘+
 		     ‘</div>‘+
@@ -26,7 +33,4 @@ function infoGenerator(names, dates, count){
 		    }
 	
 	return infoArray;
-	
-	
-	
 }