Added getX and getY default functions.

The x and y getter/setter were throwing an error because there was no getY or getX defined.