Better testing of direct output pins.  added a little better control for
latching output.