Added stylecop to csproj. Fixed several warnings