Stabilizing Accelerometer (ADXL335) to measure displacement?

A number of replies back you got a suggestion on how to turn the three axis into a single acceleration number. That you need to do, as you shouldn't read each axis independently. Simply rotating the device would cause constant changes in the X, Y and Z values but should have a constant number for the overall acceleration.