All commands functional

I haven't actually tested this commit yet...shame on me, but this
should be completely functional now.  I will do some refactoring
after I wake up in the morning.