Added magnetometer code.
Merge branch 'master' of https://github.com/futureshocked/txplore