Added comments to is_command function.