fixed a number of problems found on the real robot.