added getters
cleaned up the code
now it uses XY Point as a framework, as it should. Phew! :sunglasses: