Fix gitbits return value.
Move printbits finction into bits.c file.
Add setbits.