sends a message at regular intervals
log file of error
added control port to take input from heart beat
connected heart_beat to the mac control port