public void run() throws Exception {

		if (mode.compareTo("learn") == 0) {
			System.out.println("Start programm in learn mode.");

			if (loadPath == null || storePath == null) {
				System.out
						.println("Please specify a directory with images '--loadPath' and a place where to store the network '--filePath'.");
				return;
			}

			if (verbose) {
				System.out.println("Learning from: " + loadPath + ".");
				System.out.println("And later storring the results at: "
						+ storePath + ".");
			}
			trainAndSleep();
		} else if (mode.compareTo("tell") == 0) {
			System.out.println("Start programm in tell mode.");

			if (loadPath == null || filePath == null) {
				System.out
						.println("Please specify a network '--loadPath' and an imageFile '--filePath'.");
				return;
			}

			if (verbose) {
				System.out.println("Loading the network from: " + loadPath
						+ ".");
				System.out
						.println("And trying to recognice: " + filePath + ".");
			}
			ask();
		} else if (mode.compareTo("gui") == 0) {
			System.out.println("Start programm in GUI mode.");
			gui();
			
		} else {
			System.out.println("I don't know, what you mean with '" + mode
					+ "' and my brain can't help me!");
		}

		System.out.println("Done.");
	}