optimizing code

MAG3110 and MPL3115
add MMA8451 Sensor