begin moving main loop work inside full-power-only segments
more code block rearrangement, minor data type fix
more initialization code into one-time loop
rest of main loop work inside full-power-only segments
more diagnostics, conditions