public static void main(String[] args) throws IOException {

		String[] track;

		// bounding boxes are specified as a comma separate list of
		// longitude/latitude pairs, with the first pair denoting the southwest
		// corner of the box.
		// For example locations=-122.75,36.8,-121.75,37.8 would track tweets
		// from the San Francisco area.
		// The below latitude longitude tracks chicago 
		double chilat = 41.878114;
		double chilong = -87.629798;
		double[][] geo = { { chilong - .5, chilat - .5 },
				{ chilong + .5, chilat + .5 } };
		
		//Default operation - no keywords specified, just track bounding box of Chicago
		/*if (args.length==0) {
			//Create object of StreamCrawler with specified geo co-ordinates
			StreamCrawler sc = new StreamCrawler(null, geo, true);
			//Calling run method to start filtering tweets
			sc.run();
		}
		//Keywords mode - filter tweets by keywords
		else */
		{
			//Read keywords from file supplied as argument and store into arraylist
			FileReader file = new FileReader("keywordsnew.txt");
			BufferedReader br = new BufferedReader(file);
			ArrayList<String> kws = new ArrayList<String>();
			String kw;
			int count = 0;
			while ((kw = br.readLine()) != null) {
				if (kw.length() > 0) {
					kws.add(kw);
					count++;
				}
			}
			br.close();
			track = new String[count];
			int index = 0;
			for (String word : kws) {
				track[index] = word;
				index++;
			}
			//Create object of StreamCrawler with keywords array
			StreamCrawler sc = new StreamCrawler(track, geo, false);
			//Calling run method to start filtering tweets
			sc.run();
		}
	}