public Repository(){
		repository = new ArrayList<>();
		data = new BookData();
		File dir = new File("documentRepository/");
		File[] directoryListing = dir.listFiles();
		int i = 0;
		if(directoryListing != null){
			String blob = "";
			Scanner reader = null;
			for(File child : directoryListing){
				try {
					reader = new Scanner(child);
				} catch (FileNotFoundException e) {
					System.out.println("File not found.");
					System.exit(0);
				}
				blob = "";
				while(reader.hasNext()){
					blob += reader.nextLine()+"\n";
				}
				//Split up the filename into the book name, author, publication year, review score, and number of reviews. SPLITS ON COMMAS SO ENSURE NO OTHER COMMAS ARE PRESENT
				String dirName = child.getName();
				StringTokenizer fileNameTokenizer = new StringTokenizer(dirName, ",");
				System.out.println(dirName);
				String bookName = fileNameTokenizer.nextToken().trim();
				String author = fileNameTokenizer.nextToken().trim();
				int publicationYear = Integer.parseInt(fileNameTokenizer.nextToken().trim());
				double reviewScore = Double.parseDouble(fileNameTokenizer.nextToken().trim());
				String interMediateYear = fileNameTokenizer.nextToken().trim();
				int numberOfReviews = Integer.parseInt(interMediateYear.substring(0, interMediateYear.length()-4));
				repository.add(new Book(blob, bookName, author, publicationYear, reviewScore, numberOfReviews));
				data.addBook(repository.get(i));
				i++;	
			}
			data.populateTestData();
		}
		else {
			System.out.println("Specified dir does not exist.");
			System.exit(0);
		}
	}