lengthed ack timeout, fixed send return

Lots of negatives in the return of write() when sending a packet
that I corrected for.

Lengthed ack timeout to make it work
added local id debug printout
spacing
spacing