Code optimisations and consistent leading whitespace

While familiarising myself with this project I applied a few inspections using ReSharper to improve performance in a few places, correct some errors in the documentation, and so forth. There are no functional changes here. Leading whitespace has also been rationalised with spaces which were the most common, yet not exclusive, indentation character. Unused `using` directives have been removed, and fully qualified references have been shortened.