Clockgen

Fully reversed, documented, and best of all, working.