public static void main(String[] args) {
		if(args.length!=1){
			
			System.out.println("Inappropriate arguement passed, please pass only 1 arguement");
			return;
		}
		
		if(!readConfig(Constants.CONFIGFILE,Integer.parseInt(args[0]))){
			return ;
		}
		
		if(!ConnectionManager.createConnections(currentNode,connectionSocket, mapNodes))
			return;
		
		Thread serverThread;
		Thread sendThread;
		try {
			serverThread = new Server(LC,sendMaxClock,sendClockReplyQueue,recvQueue,mapClockReplies);
			serverThread.start();
			sendThread = new MessageSender(LC,sendQueue,sendMaxClock,sendClockReplyQueue,mapClockReplies);
			sendThread.start();
		} catch (IOException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
			return;
		}
		logApplicationConfDetails();
		displayMenu();
		try {
			if(serverThread!=null)
				serverThread.join();
			if(sendThread!=null)
				sendThread.join();
        } catch (Exception e) {
            e.printStackTrace();
        }
		
	}