rewriting main loop

working base axis feedback loop, but performance should be improved by
setting a fixed distance - explore accelerating distance movement