Add Init function with in and out channels.

Move this to the nv package and make it look more like a library.