Index: branches/FEPSimulator/FEPSim.cpp
===================================================================
--- branches/FEPSimulator/FEPSim.cpp	(revision 224)
+++ branches/FEPSimulator/FEPSim.cpp	(revision 233)
@@ -1,5 +1,12 @@
 #include "FEPSim.h"
-#include <time.h>
-
+
+/**
+ * Constructor. Sets data values for RPC Client and socket server.
+ * 
+ * @param ATMSHost The IP of ATMS Server
+ * @param FEP RPC program number
+ * @param FEP RPC program revision number
+ * @param Socket Server listen port
+ */
 FEPSim::FEPSim(char * ATMShost, int FEP_PROG, int FEP_REV, int SOCK_PORT) {
     this->ATMSHost = ATMShost;
@@ -13,8 +20,15 @@
 }
 
+/**
+ * Destructor: closes the log file if open
+ */
 FEPSim::~FEPSim() {
     FEPLogFile.close();
 }
 
+/**
+ * Handler for the ATMS RPC Response (to the client RPC Call)
+ * @param response pointer to fep_reply struct
+ */
 void FEPSim::handleCallResponse(void *response) {
     // Failed RPC Call 
@@ -28,4 +42,10 @@
 }
 
+/**
+ * Sends an fep_reply for each station on the FEPLine. 
+ * Gets highway status from recieved socket msg.
+ * 
+ * @param buffer The recieved highway status msg.
+ */
 void FEPSim::sendReplys(char * buffer) {
     HighwaysParser highwaysParser = HighwaysParser(buffer);
@@ -106,4 +126,8 @@
 }
 
+/**
+ * Creates an RPC Client, and on successful creation, sends fep_replys to ATMS.
+ * @param The recieved highway status msg.
+ */
 void FEPSim::manageClientConnection(char * buffer) 
 {
@@ -120,5 +144,8 @@
 }
 
-
+/**
+  * Creates an RPC Client to the ATMS Server. If unsuccessful, returns false
+  * @return bool success
+  */
 bool FEPSim::createClient() {
     /* Create RPC Client to communicate with ATMS */
@@ -137,4 +164,9 @@
 }
 
+/**
+ * Creates a socket server and awaits the highway status message from the
+ * ATMS Driver. Upon receipt of the highway status message, creates an RPC
+ * client and sends the fep_replys to the ATMS.
+ */
 void FEPSim::runSockServer() {
     int sockfd, newsockfd, portno, clilen;
