public static void main(String[] args) throws IOException, InterruptedException, JSONException {
		
		//Start the client socket
		Boolean isClientRunning = true;
		Thread socket = new Thread(){
			public void run(){
				try {
					try {
						CommonUtility.getInstance().startSocket(false);
					} 
					catch (InterruptedException e) {
						e.printStackTrace();
					}
				} 
				catch (UnknownHostException e) {
					e.printStackTrace();
				} 
			}
		};
		
		//Start client socket
		socket.start();
		
		//Initialize client socket
		TimeUnit.SECONDS.sleep(5);
		CommonUtility.getInstance().initializeFileSync();
	//comment	
		/*
		 * Terminal Logic
		 * 
		 * 1. Share file
		 * 2. Update co-ordinates
		 * 3. online/offilne mock
		 * 4. help
		 * 5. quit
		 */
		System.out.println("Client is UP......");
		printHelpMenu();
		
		do
		{
			System.out.print("Enter next command : ");
			BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
			String cmd = buf.readLine();
			
			//command --> share <file_name> <user_id>
			if(cmd.startsWith("share")){
				shareFile(cmd);
			}
			
			//command --> updateLoc
			//command --> updateLoc 5 10
			else if(cmd.startsWith("updateLoc")){
				updateClientLoc(cmd);
			}
			
			//command --> updateState [true/false]
			else if(cmd.startsWith("updateState")){
				updateClientState(cmd);
			}
			
			else if(cmd.startsWith("fileList"))
			{
				displayLocalFiles();
			}
			
			else if(cmd.startsWith("help")){
				printHelpMenu();
			}
				
			else if (cmd.startsWith("quit")){
				isClientRunning = false;
			}

			//System.out.println("isClientRunning : " +  isClientRunning);
		}while(isClientRunning);
	}