Added automatic detection of motor IDs, allowing any motor to be connected to any UART socket