Working sendmsg and readmsg functions, 'name' input from STDIN