Fixed more bugs and added exception handling for when the USB dongle is not connected or the I2C is not connected