public static List<Command> readList(String pathName) {
		List<Command> list = new ArrayList<Command>();
		ObjectInputStream oin = null;
		try {
			File f = new File(pathName);
			if (f.exists()) {
				oin = new ObjectInputStream(new BufferedInputStream(
						new FileInputStream(f)));
			list = (List<Command>)oin.readObject();
			}
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			try {
				if (oin != null) {
					oin.close();
				}
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		return list;
	}