replaced duplex stream api
safe opts
new non-duplex api
doc
implemented append mode