More cleanup and abuse of C# features

Converted a few if elseif blocks into switch statements where it makes
sense
Changed if else to use a ? instead
More XML doc cleanup
Convert to switch statements where it makes sense