Ongoing updates to clean up legctrl.c/h, and port to ip2.5