Added functions to adr_controller to magup, wait, magdown, regulate, and do all of the above (regenerate). In testing found several bugs and fixed them. Seems to work now, but I need to do a real cycle to make sure.