Fixed a bug where 'end' would be emitted before the last 'data' event.
Merge pull request #7 from bcuff/master

Fixed a bug w/ pause/resume