Enabled StyleCop and fixed related errors

Enabled StyleCop and fixed related errors