Refactored a bunch of stuff, added the first device: the system clock, channels appear to be working