Small bugfix to get nouns working correctly in PerformActions.
Make some variable names easier to understand.
Trace input strings to make data flow easier to follow.