move writeTowire readFrom wire to I2c class