Added capability to lsm303dlh and fixed a couple of errors in i2c code.