GY-521 CODE - how to disable reset to 0?

Noob here!

I am trying to set up my GY-521 6DOF with a arduino nano. Everything works ok its just the values return to 0 after every directional change.

im trying to make the data from the gyro, stick within its relative direction?

how would i do this?

the code i am using is the in the link below, only changes i have made is removing the print lines to the serial monitor that show anything but the X Y AND Z axis data so its eaier to read in MAX/msp.

Code source

Arduino Playground - MPU-6050 <

any help would be grand. thanks