add bitset read and print functions