Multiple changes to the client so that it works with the arduino server.