public static void main(String[] args) {
		String error, error2;
		
		try {
			Downloader downloadVersion = new Downloader("Checking for Updates");
			downloadVersion.setSize(620,300);
			downloadVersion.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
			downloadVersion.setVisible(true);
			downloadVersion.Download(new URL("http://kamakwazee.net/physiologyquiz/version.txt"), new File("update.txt"), "Checking for Updates");
		}catch (IOException e) {
			e.printStackTrace();
		}
		
		File f = new File("version.txt");
		if(!f.exists())
		{
			
			try {
				Downloader downloadProgram = new Downloader("Downloading Physiology Quiz");
				downloadProgram.setSize(620,300);
				downloadProgram.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
				downloadProgram.setVisible(true);
				downloadProgram.Download(new URL("http://kamakwazee.net/physiologyquiz/PhysiologyQuiz.zip"),new File("PhysiologyQuiz.zip"),"Downloading Physiology Quiz");
				install();
				removeFiles();
				runProgram();
			} catch (IOException e) {
				e.printStackTrace();
			}
			
		}
		else if(!(error = fileToString(f)).equals(error2 = fileToString(new File("update.txt"))))
		{
			
			try {
				Downloader downloadUpdates = new Downloader("Downloading Updates");
				downloadUpdates.setSize(620,300);
				downloadUpdates.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
				downloadUpdates.setVisible(true);
				downloadUpdates.Download(new URL("http://kamakwazee.net/physiologyquiz/PhysiologyQuiz.zip"), new File("PhysiologyQuiz.zip"), "Downloading Updates");
				install();
				removeFiles();
				runProgram();
			} catch (IOException e) {
				e.printStackTrace();
			}
			
		}
		else if(error.equals("Error") || error2.equals("Error"))
		{
			
			JOptionPane.showMessageDialog(null, "Error! Please contact Tabor Kvasnicka!");
			
		}
		else
		{
			
			try {
				removeFiles();
				runProgram();
			} catch (IOException e) {
				e.printStackTrace();
			}
			
		}
		
	}