all emit methods now return number of bytes that were emitted.
changed version to 2.0.0
Merge pull request #29 from mohammadkolahdouzan/master

all emit methods now return number of bytes that were emitted.