First pull request

First pull request, hope this works.
I did the listener and sender for the relay, but have not been able to test the listener yet.
all these files need tabs -> spaces with 2-space indent