Streams 105

Fixed bugs, added tests, and files that contain test data.