Fix a few small bugs
Improved the time delay algorithm for OC relay and Temp relay. Figureed servel bugs in synchonizing data sets.