Initial code complete

Limit setting program and control program are at least code complete,
but untested.