[Android] code cleanup and added some useful javadocs

I cleaned the code a little bit in DirectBuffer and I added javadoc to BitUtil methods to make it clear what they actually do.