update document
logfh to _logfh (private) and add _finished flag