private Vector readMDSCoords() throws IOException
    {
        Vector coordVec = new Vector();
        pout.writeBytes("(report-model)\n");
        pout.flush();
        while(!pin.ready())
        {
            try
            {
                Thread.sleep(100);
            }
            catch(Exception e)
            {}
        }
        boolean reading=false;
        String s="";
        while(!s.equals("T"))
        {
            s=pin.readLine();
            if(s.equals("Current Stimulus Coordinates:"))
               reading=true;
            else if(reading && !s.equals("T"))
            {
                StringTokenizer tokens = new StringTokenizer(s, " ");
                double x = Double.parseDouble(tokens.nextToken());
                double y = Double.parseDouble(tokens.nextToken());
                double z = Double.parseDouble(tokens.nextToken());
                coordVec.add(new Point3d(x,y,z));
            }
        }
        while(pin.ready())
        {
            pin.read();
        }
        return coordVec;
    }