turning on code analysis and adding comments