added as macro message which is sent by master process,from the slave side added check correctness of the recieved message
added logging of recieved message for a slave process