kalman script finished

needs debugging, arcs already work