fixed issues with incrementing and looping not working properly. needs more tests
added error checking for i2c where address or method is not defined