Simplify logic for packing booleans.
Update API docs.  cleanup.