Added magnetometer support. Also added unit conversions for acceleration and magnetism.