Merge branch 'Nima-Ghods' into Greg-Sauce
mode info and relax delay for balancing

added enumerated data type which contains current mode and time in the
mode. also balance mode delay added
Merge branch 'Greg-Sauce' into Nima-Ghods
fix flag debug
Merge branch 'Nima-Ghods' into NEW-MASTER