#50 - addressed all StyleCop violations and enforced compliance

Finally managed to get rid of all warnings!

I rebased the huge number of commits back to something sensible.

Fixes #50.