I/O: Fixed hex to int. AbstractDevice: Dunno if true, but I believe that
after State.WAITING_FOR_DEVICE should be decrementation, not
incrementation of state. Supervisor: Added replacement of '\r' to "".