public static void main(String[] args) 
	{	
		File dictionary = null;
		File document = null;
		String option = "";


		if(args.length < 2 || args.length > 3)
		{
			System.out.println("Incorrect number of arguments!");
			return;
		}
		
		dictionary = new File(args[0]);
		if(!dictionary.isFile()){
			System.out.println("Unable to use the dictionary file!");
			return;
		}

		
		document = new File(args[1]);
		if(!document.isFile()){
			System.out.println("Unable to use the document file!");
			return;
		}
		
		// If a third parameter was passed for the options, check its validity 
		if (args.length == 3) 
			if(args[2].equalsIgnoreCase("-p") || args[2].equalsIgnoreCase("-f"))
				option = args[2];
			else 
			{
				System.out.println("Invalid printing or filing option argument!");
				return;
			}

		// Passing the dictionary file, document file, and the option
		run_spell_check(dictionary, document, option);		
	}