added a lot of framework to see/use acceleration, figured out magnetic direction, etc