renaming for clarity
added testing code
added working recieving code