Changes to Bit.java

Removes Null Pointer Exceptions
Changes to Bit.java

Code Clean-up