class commands: compareString() replaced with strcasecmp; various cleanup