public static List nMRSeperate(String arg){
		
        List fileList = new ArrayList();
        List fileList1 = new ArrayList();
        List pdbList=new ArrayList();
        List NMRresult=new ArrayList();
        String line= "";
        String nextline="";
        int modelCount=0, linecount=0; 
	    String currDirectory = System.getProperty("user.dir");
        
        fileList1 = FileOperation.getEntriesAsList(arg); // a list of PDBIDs


        for (int j = 0; j< fileList1.size(); j++){   // iteratively process PDB files

            String PDBID = ((String)fileList1.get(j)).substring(0,4);
            String fileName = currDirectory+"/inputdata/"+ PDBID +".pdb";
            
            fileList = FileOperation.getEntriesAsList(fileName);
            
            for(int i = 0; i < fileList.size(); i++){
            	
            	pdbList.clear();
            	
            	if (i+1<fileList.size()){            		
            	
	            	linecount=0;
	            	line = (String)fileList.get(i);
	            	nextline=(String)fileList.get(i+1);
	            	if (line.startsWith("MODEL")&& (nextline.startsWith("ATOM")||nextline.startsWith("HETATM"))) {
	            		
	            		pdbList.add(line);
	            		modelCount++;
	            		
	                    while (nextline.startsWith("ENDMDL")==false){
	                    	linecount++;
	                    	nextline=(String)fileList.get(i+linecount);
	                    	pdbList.add(nextline);
	                    }
	                    
	                    
	                    String modelName=modelCount+"";
	                    if (modelName.length()==1){
	                    	modelName="MO0"+modelCount;
	                    }
	                    
	                    if (modelName.length()==2){
	                    	modelName="MO"+modelCount;
	                    }
	                    
	                    NMRresult.add(modelName);
	                    
	                    FileOperation.saveResults(pdbList, currDirectory+ "/inputdata/"+ modelName+ ".pdb", "w");
	                    FileOperation.saveResults(modelName, currDirectory+ "/inputdata/"+ PDBID+"list.txt", "a");
	                    
	                    i=i+linecount;
	                }
            	}
            }
            
            int bb=1;
            
        }// end for
        
        return NMRresult;
	}