Have added the ability to have the trigger classes change based upon the state and fixed some of the reverse logic problems with the library.