Cosmitic changes

Add some white space and other minor reformatting
Change some print formats from %d to %u since the data is unsigned
Correct an incorrect xfree that should have been bit_free() or
  even better FREE_NULL_BITMAP()