Added debug output and sync command.
fixed bug
added debug out
separated join and sync.
Fixed several bugs
fixed remainingCd ever becoming < 0
added onCD field for interrupts. added sync request and sync button.
Actually send interrupts when asked to.
Fixed UI update bug.
UI changes
Small adjustments.
Merge pull request #1 from shitz/testing

Testing