Added base code with magnetometer sensor

original code based on ofxCoreMotion library example