add new writer option docs
add more documentation
add "error" event to writer