private static List<String> readLines(String path) {
		ArrayList<String> lines = new ArrayList<String>();

		//open file
		File file = new File(path);

		//Error if not readable
		if (!file.canRead()) {
			System.err.println("File " + file.getAbsolutePath() + " could not be read!");
			System.exit(1);
		}

		BufferedReader inputStream = null;
		//Return lines
		try {
			inputStream = new BufferedReader(new FileReader(file));
			String line;
			while((line = inputStream.readLine()) != null)  {
				lines.add(line);
			}

			inputStream.close();
		} catch (FileNotFoundException ex) {
			System.err.println(file.getAbsolutePath() + " not found!");
			System.exit(1);
		} catch (IOException ex) {
			System.err.println(ex);
			System.exit(1);
		}

		return lines;
	}