streaming now functional, fixed representation generation bugs, added basic test case