Added getRandom(int bits) method. Returns BigInt. Added overrides and exceptions.
Added specific exceptions
Fixed formatting.