added base code to transmitter main.c