public void doMain(String[] args) {
		CmdLineParser parser = new CmdLineParser(this);
		try {
			parser.parseArgument(args);
		} catch (CmdLineException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			parser.printUsage(System.out);
			return;
		}

		if (help)
			parser.printUsage(System.out);
		else {
			Timer time = new Timer(); // Instantiate Timer Object
			MonitorTask monit = new MonitorTask(); // Instantiate SheduledTask class
			time.schedule(monit, 0, 10000); // Create Repetitively task for every 10 secs	

			if (flush)
				CreateSampleDocuments.flushDB();
			if (datas)
				CreateSampleDocuments.storeFakeDocs();
			try {
				BufferedReader br = new BufferedReader(new InputStreamReader(
						System.in));

				String input;
				while ((input = br.readLine()) != null) {
					System.out.println(input);
				}

			} catch (IOException io) {
				io.printStackTrace();
			}

		}

	}