more error handling to I2C
typo fixes
use original authors style for single statement ifs
fix merge conflicts