Added basic Accelerometer and Magnetometer Functionality