add failing test for order preservation
move next() out of write(), it doesnt need a closure.
fix #3 output stream does not preserve order of input stream
add some comments and clean things up
fix typo in comment
0.0.3