fixed some bugs in the transport writing
Polling working, now time to interpret objects