EDIT code gyroscope (X to Z)

Hi, I am new in this arduino word. I finded this tutorial:

https://www.youtube.com/watch?v=ULURzkyJ2mQ

Its ok, but I need Y and Z of gyroscope and use microstep (may be A4899) on motors.

Can you help me with code?

This is my test:

https://drive.google.com/file/d/0BxFHEgCSFbs6VmlhR1ZTUy1CVFk/view?usp=sharing

THANKS