Separated jar creation to a new target called . doc-dist target depends on the generate-doc target.
Added another test for extraction of bits to catch error in resulting array size.
Fixed resulting array size.