public String propertiesInit(String propertiesDirectory, String propertyToFind, int type) throws IOException{
		try {
			BufferedReader propertiesReader = new BufferedReader(
					new InputStreamReader(getClass().getResourceAsStream(propertiesDirectory)));
			if(type == 0){
				return readProperty(propertiesReader, propertyToFind);	
			}else if(type == 1){
				return readMassProperties(propertiesReader, propertyToFind);
			}
		} catch (NullPointerException propertiesReaderNPE) {
			try {
				BufferedReader propertiesReader = new BufferedReader(
						new InputStreamReader(new FileInputStream(propertiesDirectory)));
				if(type == 0){
					return readProperty(propertiesReader, propertyToFind);	
				}else if(type == 1){
					return readMassProperties(propertiesReader, propertyToFind);
				}
			} catch (NullPointerException propertiesReaderNPE2) {
				System.err.print("\nThe directory: " + propertiesDirectory + " failed to load.\n\n");
				propertiesReaderNPE2.printStackTrace();
			}
		}
		return null;
	}