Used ReSharper to clean up much code to harmonise formatting and language use. Preparing for v1.0 release, or at least 0.9.