code: public TemporalDocument next() {
  	//String fileName = filesToProcess.poll();
  	NameAndTime n = filesToProcess.poll();
  	if (n == null) 
  	    return null;
  	try {
  	    return (n.hasTimeStamp()) 
  		? new TemporalFileDocument(n.fileName, n.timeStamp)
  		: new TemporalFileDocument(n.fileName); // no timestamp
  	} catch (IOException ioe) {
  	    return null;
  	}
      }
docs: Returns the next document from the list.