public StimCheckerIII(String apath){
		path=apath;
		
		try{
		//banned trials
		HashSet<String> banned = new HashSet<String>();
		ArrayList<TrialWrapper> tests = extractTrials(new Scanner(new File(path+"tests.js")));
		ArrayList<TrialWrapper> easyfoils = extractTrials(new Scanner(new File(path+"easyfoils.js")));
		for(TrialWrapper t:tests){
			if(!banned.add(t.seed))System.out.println("Test clash "+t.seed);
			if(!banned.add(t.A))System.out.println("Test clash "+t.A);
			if(!banned.add(t.B))System.out.println("Test clash "+t.B);
		}
		for(TrialWrapper t:easyfoils){
			if(!banned.add(t.seed))System.out.println("foil clash "+t.seed);
			if(!banned.add(t.A))System.out.println("foil clash "+t.A);
			if(!banned.add(t.B))System.out.println("foil clash "+t.B);
		}
		System.out.println("No repeated strings in test trials/foils");
		System.out.println("Insert training:");
		condSummary(extractTrials(new Scanner(new File(path+"insertcommon.js"))), banned);
		System.out.println("Delete training:");
		condSummary(extractTrials(new Scanner(new File(path+"deletecommon.js"))), banned);
		System.out.println("Reverse training:");
		condSummary(extractTrials(new Scanner(new File(path+"reversecommon.js"))), banned);
		System.out.println("Control:");
		condSummary(extractTrials(new Scanner(new File(path+"newcontrol.js"))), banned);
		
		}catch(Exception e){
			e.printStackTrace();
		}
		System.out.println("DONE");
	}