Fixed boolean array -> byte array conversion, added writeNibbleArray and readNibbleArray
Cleanup