Add clock code and modify readme.