added automatic screen fade to all scriptstates
fixed state tracking for non-controller-assigned switches