Howto convert a boolean array (or BitSet) to a string and vice versa.
Example:
boolean[] ar = {true,false,false,false,false};
print(BitArrayToString(ar));
Should return one of the following
10000 //binary
16 //decimal
10 //hex, prefered
The otherway around should work also
ar = StringToBitArray(BitArrayToString(ar));