Refactored debug messages to not rely on System.Reflection.
Commented out (unused) references to System.Reflection.