state .copy() now copies active_idx.  many plotting and cosmetic improvements