added transmitter with some routines, fixes to the simulator