Indenting.
Add command debug.
Expose another method.
Start fleshing out the transmit command handling and cleanup.

This is totally untested as yet.