subject var and receive return

added a subject to the messages send and added a return statement to
receiveMsg