private void init(String[] args) {

		int size = args.length;

		if (size == 0) {
			this.help();
			return;
		}

		for (int i = 0; i < size; i++) {

			String cmd = args[i];

			if (cmd.equalsIgnoreCase("-alpha")) {

				alpha = Double.parseDouble(args[i + 1]);

				alphaFlag = true;

				i++;
			}

			if (cmd.equalsIgnoreCase("-beta")) {

				beta = Double.parseDouble(args[i + 1]);
				betaFlag = true;

				i++;
			}

			if (cmd.equalsIgnoreCase("-ntopic")) {

				topicCount = Integer.parseInt(args[i + 1]);
				i++;
			}

			if (cmd.equalsIgnoreCase("-niters")) {

				iterationCount = Integer.parseInt(args[i + 1]);
				iterationCountFlag = true;
				i++;
			}

			if (cmd.equalsIgnoreCase("-savestep")) {

				saveStep = Integer.parseInt(args[i + 1]);
				saveStepFlag = true;
				i++;
			}

			if (cmd.equalsIgnoreCase("-twords")) {

				topWord = Integer.parseInt(args[i + 1]);
				topWordFlag = true;
				i++;
			}

			if (cmd.equalsIgnoreCase("-input")) {

				input = args[i + 1];

				i++;
			}
		}
	}