fix #4 read and write streams

 On branch master

	modified:   index.js
	new file:   test/stream_methods_test.js