added message sending/receiving functionality into the daemon and sender programs