delete bogus examples
clean up example code
refactoring
complete rewrite using streams2

some tests failing
fix some tests and use StringDecoder where necessary
all tests passed