Added the 'type' option to  createWriteStream.
Removed useless branching in write-stream.
Added in the README the new constructor option for createWriteStream.