remove dependency on output console in File and update DOC