public static void main (String[] args) throws IOException {
		// Show what command line arguments to use
		if (args.length == 0) {
			System.err.println("Usage: java ArithmeticDecompress InputFile OutputFile");
			System.exit(1);
			return;
		}
		
		// Otherwise, decompress
		File inputFile = new File(args[0]);
		File outputFile = new File(args[1]);
		
		BitInputStream in = new BitInputStream(new BufferedInputStream(new FileInputStream(inputFile)));
		// OutputStream out = new BufferedOutputStream(new FileOutputStream(outputFile));
		Writer out = new BufferedWriter(new FileWriter(outputFile));
		try {
			FrequencyTable freq = readFrequencies(in);
			// System.out.println(freq.toString());
			decompress(freq, in, out);
		} finally {
			out.close();
			in.close();
		}
	}