Retry reading from socket, on short reads.
Updated code layout. Added more elaborate robot simulator.
merged