add stylecop rules
fix code accordingly to stylecop rules