Cleanup and fix for clocks and example

Signed-off-by: Scott Wilson <i@scottwilson.ca>