QMIMO-7 add timeout if calling mode switch pl scripts fails, and adjust multiplier so that the border around top dials is always better % for # of devices
QMIMO-7 clean up the retotal code a little more