Update for more io changes.

Also, move test -> example to work with rustpkg.