[docs,library] Document bit-set.

This is a resurrection of some old materials from Harlequin.