Lots of code factoring, a few changes in the file format, orientation activity now returns the acceleration applied to the phone in terrestrial reference.