Split up commands and functionality; debug stuff

Broke up clij.rb because it was getting unwieldy.  Worked through
the addition of some debugging statements.  Rationalized commands.