Don't want emacs desktop files in the repo.
TWTrapPhysStateControl and supporting functions added.