Example code for linac control

Example code which allows closed loop control of the linac with
positional feedback.