from/new #6: initial commit of from chainer. not complete.

long-lived pull request for #6. not yet ready.