Added javadoc to command class.