debugged sender and receiver

also some MISTAKES that SOMEBODY made while TOUCHING CODE I WAS WORKING
ON