open EMC2 if not open when universal opening EMC2 objects. Also add global keyword to most variables in commonVariables.