Add bit library

Includes minor tweak to the docgen to make it compatible with our
codestyle. (Required so the docgen picks up on the bit library)