added stylecop rules and fixed files to pass rules check.