Add bindings for nid (Refs #77)

nid, for #77 - ready to be reviewed