I2C support added
minor bug fixes