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)
Merge pull request #110 from Xandaros/bit

Add bit library