Simple Arduino code for MPU 6050 (Invensense) Help

I am a newbie. I need help in reading data from a MPU 6050 (Invensense). The MPU 6050 is a combination of a 3 axial accelerometer and a 3 axial gyroscope. The current code on the arduino playground site works but with errors. It spits out constant values and does not change when the device is moved around.

Is there an error in the output (in the serial monitor) ?
You could copy-paste the output in a post, so we can take a look at it.

Did you run the i2c scanner ?
http://playground.arduino.cc/Main/I2cScanner
If the i2c scanner can't see the device, it is no use trying to read from it.

Did you set the address to the right one in the sketch ? 0x68 or 0x69.

Thank you for the suggestion. I will run the I2C scanner and get back to you.

The github code for MPU 6050 works. But there is no way to reset the output from the accelerometer and gyroscope when the sensor is not moving and kept flat on a table. Please help me with this.

What do you mean with reset ?
Do you want to set the accelerometer and gyro values to zero ?
Is there a offset function in the library ?

Thank you for the quick update. By "Reset" I mean I would like to set the values to zero. I will post a you tube link to a different IMU. If you watch this video I could explain myself better.

I am trying to get something similar going but using MPU 6050 and MPU 9150. If you look at the video in the GUI. The developer has an option to reset the output values from the accelerometer and the gyro and the magnetometer to zero.

The library is very complex. I find it a bit difficult to understand.

The sensor and the library are for advanced users. It is difficult.

According to the documentation,
http://www.i2cdevlib.com/docs/html/class_m_p_u6050.html
There are functions like setXGyroOffset().
They write an offset in the sensor itself. That feature is not documented by the manufacturer of the sensor, but the 'dmp' firmware uses it also.

You can always use an offset correction in your own code.
That is also a good solution.

Thank you for the quick update. I will try it out.