Enabled Code Analysis (Rule Set: Microsoft All Rules). Fixed any issues appeared in analysis (no serious issues)