updated method for flag_args assignment & added new flag_exists() method to test for presence of flags