Stream emit rows

Here is the code for emitting rows as mentioned in #37. The on data event could then be attached to an input of a stream.