Updated clock functions and documentation.