Changed y axis direction and endstop handling