Add DebugKit panel and minor cleanup.
CS fixes.