FEATURE: added magnetometer support
UPDATE: now pretty much works the way it's supposed to

which is accurate to what I asked, but is overall not efficient
ignore the bin directory