Added #define statements, made more usuable

I added #define statements for easier use,  and I added a function
called getCoordinateValue(int) to get the current x, y, z values.