updated binary.h and added binary.c to read bit values from registers