Added new feature for the clock, periodic events, simple cases works ok, complex test case to write