Changed printBits to print based on the size of the data passed to it. Simplified setByte and setWord to use existing setBits function