added diag tool. Fixed double read() InputStream. fixed dirty state of DarcTree.