Added code to import/export bit array. Useful if you need to persist the
bits in a datastore.