some bugs solved on the class ClockManager. Still not working