add clockInit function and add timer files