Add bitstring doc tests and document.