Removed sprintf from append_integer_to_out_buf, added bim to gt. Replace...

...d bit unpacking in gt's print with direct masking.