Added the agent that writes the log file

Receives info from the COM port, generates the log file with the
formatted data.