fixed black-start detection and moved it to the "end" of the iteration; fixed battery charge / discharge limits; fixed station state machine for blackouts
fixed battery limits; added black start delay; fixed battery nok condition; finished testing.