improved x-axis code, shared it between all VSRTI programs
updated y-axis code to match x-axis, shared between VSRTI programs