More documentation (+ a little more refactoring of CommandTypes)