Changes in findCommand and script 'catagories' and types.

$CATAGORIES becomes $SCRIPT_TYPES
$TYPES becomes $SCRIPT_SUBTYPES
in findCommand:
$i becomes $scriptType
$j becomes $scriptSubtype