Remove unused imports and rearrange them.
Remove redundant code expect for else's in else if when the first if returns.
Remove unused code, unnecessary this's, and other unneeded qualifiers.
Change to use initializers.
Make use of the ?? operator.
Convert some if(x) return a else return b to ?:
Made use of linq and String.Join where useful.
Close xml tags.
Covert some if else chains to switch statements.
Remove doubled semicolons.
Random stuff.
Convert to const.
Merge pull request #576 from RichardLake/Cleanup

Cleanup