Cleaned up C# compiler warnings

Removed unused variables
Reduced name ambiguity.