temp
added transmit method
Updated transmit() to process message type
stable before refactoring