public static void main(String[] args) throws FileNotFoundException {

		//library = parseLibrary();
		library = parseLibraryTFIDF();
		
		Scanner console = new Scanner(System.in);
		String input;
		intro();
		
		do {
			System.out.print("> ");
			input = console.next();
			switch (input) {
				case "help":
					printHelp();
					break;
				case "ls":
					list();
					break;
				case "docInfo":
					String documentName = console.next();
					docInfo(documentName);
					break;
				case "wordInfo":
					documentName = console.next();
					String word = console.next();
					wordInfo(documentName, word);
					break;
				case "distance":
					String doc1 = console.next();
					String doc2 = console.next();
					reportDistance(doc1, doc2);
					break;
				case "closest":
					documentName = console.next();
					getClosest(documentName);
					break;
				case "q":
					System.out.println("Goodbye");
					break;
				default:
					System.out.println("unknown command");
					break;
			}
		} while (!input.equals("q"));	
	}