add a more flexible connect! method

- tries to detect if the XBee is already in command mode