Added write_to to BufferView.

Also make lib and ffi private, and document len