Made changes to use the i2c library found