JavaDocs and a couple of fixes in CommandHelper