simplify examples/parsestring.go
added example file writing.go