Added support for accelerometer. Updated flags. Updated license.