Export Nib module

Added Nib.mli. I don't know how to write the signature without the
refactorings I made in Nib.ml.