implemented transmit, broadcast, send

also fixed some types