Fixed z coordinates returning x coordinates

Z coordinates are also erroneously listed as 'Y' coordinates but I didn't change that as it might break things
Merge pull request #5 from shnud/patch-1

Fixed z coordinates returning x coordinates