Submitted clock code
Basic clock refactoring. Time not read currently because the code isn't close to ready.