public void writeContents() {
		PrintWriter printer;
		ObjectOutputStream oOS;
		
		try {
			printer = new PrintWriter("run" + this.runNumber + "/Machine" + (this.id + 1) + "Inventory.txt");
			printer.println("Machine " + this.id);
			printer.println(new Date().toString());
			for (int i = 0; i < this.dispensers.size(); i++) {
				Dispenser temp = this.dispensers.get(i);
				if (!temp.getDispenserContents().isEmpty()){
					printer.println(i + ")" +temp.getDispenserContents().size() + "," + temp.getDispenserContents().peekFirst().getName() + " @ $" + df.format(temp.getPrice()) + "," + temp.getDispenserContents().peekFirst().getNutritionInfo());
			
				} else {
					printer.println("Empty!");
				}
			}
			printer.close();
			printer = new PrintWriter("run" + this.runNumber + "/Machine" + (this.id + 1) + "Sales.txt");
			printer.println("Machine " + this.id);
			printer.println(new Date().toString());
			for (int i = 0; i < this.dispensers.size(); i++) {
				Dispenser temp = this.dispensers.get(i);
				printer.println(this.quantitySold.get(i) + " " + temp.getName() + " sold @ $" + df.format(temp.getPrice()) + " = $" + df.format(temp.getPrice() * this.quantitySold.get(i)));
			}
			printer.println("Total Sales = $" + df.format(this.totalSales));
			printer.close();
		} catch (IOException e) {
			System.err.println("Unable to Write Contents to Text File.");
		}
		try {
			oOS = new ObjectOutputStream(new FileOutputStream("run" + this.runNumber + "/Machine" + (this.id + 1)+ ".dat"));
			oOS.writeObject(this);
			oOS.flush();
			oOS.close();
		} catch (IOException e) {
			System.err.println("Unable to Write Object");
		}
	}