code: static void print(KAFDocument kaf) {
  	try {
  	    Writer out = new BufferedWriter(new OutputStreamWriter(System.out, "UTF8"));
  	    out.write(kafToStr(kaf));
  	    out.flush();
  	} catch (Exception e) {
  	    System.out.println(e);
  	}
      }
docs: Writes the content of a KAFDocument object to standard output.