private static boolean readBoolean(String prompt, boolean defaultVal) {
		boolean val = false;
		boolean set = false;
		while (!set) {
			String s = readString(prompt + " (T/F) (default " + (defaultVal ? "T" : "F") + ")");
			if (s.length() > 0) {
				if (s.charAt(0) == 't' || s.charAt(0) == 'T') {
					val = true;
					set = true;
				} else if (s.charAt(0) == 'f' || s.charAt(0) == 'F') {
					val = false;
					set = true;
				} else {
					System.err.println("Please enter T or F");
				}
			} else {
				val = defaultVal;
				set = true;
			}
		}
		return val;
	}