implmented specifying x axis zero and y axis zero.  Also fixed some position calculation bugs.