i2c.h simplified and tested successfully