public static void main(String[] args) throws IOException, ParseException {
			Options opt = new Options();
			opt.addOption("", "db", true, "The File used for Training");
			opt.addOption("", "method", true, "The method used for Training");
			opt.addOption("", "model", true, "The model file to be created");
			CommandLineParser parser = new GnuParser();
			CommandLine cmd = parser.parse(opt, args);
			String p = "";
			String filename = "";
			int type = 1;
			if(cmd.hasOption("db")){
			p = cmd.getOptionValue("db");
			} else {
			System.out.println("Select Database");
			}
			if(cmd.hasOption("method")){
			if (cmd.getOptionValue("method").equals("gor1")) {type = 1;}
			else if (cmd.getOptionValue("method").equals("gor3")) {type = 3;}
			else if (cmd.getOptionValue("method").equals("gor4")) {type = 4;}
			}
			else {
			System.out.println("Default Method Gor1 selected");
			}
			if(cmd.hasOption("model")){
			filename = cmd.getOptionValue("model");
			} else {
			filename = "/home/proj/biocluster/praktikum/bioprakt/progprakt6/Solution4/test.txt";
			//System.out.println("foo");
			}
			//String p = "/home/proj/biocluster/praktikum/bioprakt/Data/GOR/CB513DSSP.db";
			//String filename = "/home/proj/biocluster/praktikum/bioprakt/progprakt6/Solution4/test.txt";
			// TODO Auto-generated method stub
			
			if(type == 3){
				Gor3Model g = new Gor3Model();
				g.train(p);
				Useful.writemodelfile(filename, g);
			}
			else if(type == 4){
				Gor4Model g = new Gor4Model();
				g.train(p);
				Useful.writemodelfile(filename, g);
			}
			else{
				Gor1Model g = new Gor1Model();
				g.train(p);
				Useful.writemodelfile(filename, g);
				}
			}